package com.lcj.crawler;

import com.geccocrawler.gecco.annotation.*;
import com.geccocrawler.gecco.request.HttpRequest;
import com.geccocrawler.gecco.spider.HtmlBean;

@Gecco(matchUrl = "http://www.cshr.com.cn/csrcwhr/company/chtml/{companyId}.html", pipelines = { "saveCshrContact"})

public class CshrContact implements HtmlBean {

    @RequestParameter
    private String companyId;

    @Request
    private HttpRequest request;

    @Text
    @HtmlField(cssPath = ".ResumeView>div:nth-last-child(2)>div.com>div:nth-child(1)>ul:nth-child(1)>li:nth-child(2)")
    private String contactPerson;

    @Text
    @HtmlField(cssPath = ".ResumeView>div:nth-last-child(2)>div.com>div:nth-child(1)>ul:nth-child(2)>li:nth-child(2)")
    private String phone;

    @Text
    @HtmlField(cssPath = ".ResumeView>div:nth-last-child(2)>div.com>div:nth-child(1)>ul:nth-child(3)>li:nth-child(2)")
    private String email;

    @Text
    @HtmlField(cssPath = ".ResumeView>div:nth-last-child(2)>div.com>div:nth-child(1)>ul:nth-child(4)>li:nth-child(2)")
    private  String mobilephone;

    @Text
    @HtmlField(cssPath = ".ResumeView>div:nth-last-child(2)>div.com>div:nth-child(2)>ul:nth-child(1)>li:nth-child(2)")
    private String address;

    public String getContactPerson() { return contactPerson; }

    public void setContactPerson(String contactPerson) { this.contactPerson = contactPerson; }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobilephone() {
        return mobilephone;
    }

    public void setMobilephone(String mobilephone) {
        this.mobilephone = mobilephone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public HttpRequest getRequest() {
        return request;
    }

    public void setRequest(HttpRequest request) {
        this.request = request;
    }
}
